import java.util.Hashtable;
public class PowerHash extends Hashtable
  {
  public Object put(Object k1)
    {
    return super.put(k1,new Hashtable());
    }
  public Hashtable get(Object k1)
    {
    return (Hashtable)super.get(k1);
    }
  public Hashtable remove(Object k1)
    {
    return (Hashtable)super.remove(k1);
    }
  public Object put(Object k1,Object k2,Object obj)
    {
    if(get(k1)==null)
      {
      put(k1);
      }
    return get(k1).put(k2,obj);
    }
  public Object get(Object k1,Object k2)
    {
    if(get(k1)!=null) return get(k1).get(k2);
    else return null;
    }
  public Object remove(Object k1,Object k2)
    {
    return ((Hashtable)super.get(k1)).remove(k2);
    }
  }
